<template>
  <template>
    <el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
      <el-tab-pane label="基本信息" name="first">User</el-tab-pane>
      <el-tab-pane label="数字形象" name="second">Config</el-tab-pane>
      <el-tab-pane label="AI设置" name="third">Role</el-tab-pane>
    </el-tabs>
  </template>

  <script lang="ts" setup>
    import { ref } from 'vue'
    import type { TabsPaneContext } from 'element-plus'

    const activeName = ref('first')

    const handleClick = (tab: TabsPaneContext, event: Event) => {
      console.log(tab, event)
    }
  </script>

  <style>
    .demo-tabs > .el-tabs__content {
      padding: 32px;
      color: #6b778c;
      font-size: 32px;
      font-weight: 600;
    }
  </style>
</template>
